#pragma once

#include "stdafx.h"
#include <windows.h>

// writes log output to c:\GMFBridge.txt if present.
class Logger
{
public:
	Logger();
	~Logger();
	void Log(const WCHAR* pFormat, ...);
private:
	//CCritSec m_csLog;
	//DWORD m_msBase;
	HANDLE m_hFile;
};
extern Logger theLogger;
#define LOG(x, ...) theLogger.Log(x, __VA_ARGS__)